// generated 2005/8/8 17:10:19 CST by xihels@163.com
//


#ifndef _COMMANDBAR_HH
#  define _COMMANDBAR_HH
#if !defined(GLADEMM_DATA)
#define GLADEMM_DATA 
#include <gtkmm/accelgroup.h>

class GlademmData
{  
        
        Glib::RefPtr<Gtk::AccelGroup> accgrp;
public:
        
        GlademmData(Glib::RefPtr<Gtk::AccelGroup> ag) : accgrp(ag)
        {  
        }
        
        Glib::RefPtr<Gtk::AccelGroup>  getAccelGroup()
        {  return accgrp;
        }
};
#endif //GLADEMM_DATA

#include <gtkmm/box.h>
#include <gtkmm/button.h>
#include <gtkmm/comboboxtext.h>

class MsgPage;
class MsgWindow;
class Smiley;
class CommandBar : public Gtk::HBox
{  
    public:
	CommandBar(MsgWindow* _parent, GlademmData *gmm_data); 
	~CommandBar();
    private:
	MsgWindow* parent;
	void on_buttonLog_clicked();
	void on_buttonSend_clicked();
	void on_buttonSave_clicked();
	void on_toolbuttonSmiley_clicked();
	void on_buttonHideMember_clicked(); 
	void on_comboboxDays_changed();
    private:
	Smiley* smileyWnd;
	Gtk::Button * buttonLog;
	Gtk::Button * buttonSend;
	Gtk::Button * buttonSave;
	Gtk::Button * buttonHideMember;
	Gtk::ComboBoxText * comboboxDays;
	time_t logoffset[10];
	int logoffset_index;
};

#endif
